<alert class="alert-msg" ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}
</alert>

<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title">排期查询</h3>
    </div>
    <div class="panel-body">
        <form class="form-inline">
            <div class="form-group">
                <label for="sceneName">场景名称：</label>
                <input type="text" class="form-control" id="sceneName" placeholder="场景名称"
                       ng-model="currentScene.sceneName">
            </div>

            <div class="form-group">
                <label for="state">状态：</label>
                <select id="state" name="state" ng-model="currentSchedule.state" class="form-control">
                    <option value="-1">全部</option>
                    <option value="1">在用</option>
                    <option value="0">停用</option>
                </select>
            </div>

            <div class="form-group">
                <label for="creator">排期创建者：</label>
                <input type="text" class="form-control" id="creator" placeholder="场景名称"
                       ng-model="currentSchedule.creator">
            </div>

            <button type="submit" class="btn btn-primary" ng-click="getBizSceneList()">查询</button>
        </form>
    </div>
</div>

<div class="panel panel-info">
    <div class="panel-body">
        当前场景：<strong>{{currentScene.sceneName}} </strong>接入内容源数：<strong>{{currentScene.contentSrcCount}} </strong><br/>
        总内容数：<strong>{{currentScene.contentCount}}</strong> 待审核：审核通过：审核不通过：<br/>
        总排期数：<strong>{{currentScene.scheduleCount}}</strong> 待上线：
        <br/>
        <!--<button class="btn btn-primary" ng-click="newSchedule()" ng-show="currentScene.sceneId">新增场景排期</button>-->

    </div>
</div>

<div>当期排期共有<strong>{{totalItems}}</strong>条排期内容</div>

<div style="height:300px !important;" ui-grid="gridOptions" ui-grid-auto-resize ui-grid-resize-columns class="grid">
</div>

<pagination total-items="totalItems"
            ng-model="currentPage"
            items-per-page="pageSize"
            max-size="3" class="pagination-sm"
            boundary-links="true" rotate="false"
            previous-text="上一页"
            next-text="下一页"
            last-text="最后一页"
            first-text="第一页"
            ng-change="getBizSceneList()">

</pagination>